/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-26
 * Time:20:41
 */
public class Out {
    public int data1 = 1;
    public static int data2 = 2;
    private int data3 = 3;

    public void test() {
        InnerClass innerClass = new InnerClass();
        System.out.println(innerClass.data1);
    }
    static class Inner{
        public int data1 = 10;
    }

    class InnerClass{
        public int data1 = 10;
        public static final int data2 = 20;
        public int data3 = 30;

        void method() {
            System.out.println(data1);
            System.out.println(data2);
            System.out.println(Out.this.data1);
            System.out.println(Out.this.data3);
        }
    }

//    public void func() {
//        class A {
//            private int data4 = 4;
//        }
//        A aa = new A();
//        System.out.println("data4" + aa.data4);
//    }

//    class InnerClass{
//        public int data1 = 10;
//        private int data3 = 30;
//        public int data4 = 4;
//        public static int data5 = 5;
//        private int data6 = 6;
//
//        public void Test() {
//            Out out = new Out();
//            System.out.println(out.data1);
//            System.out.println(data2);
//            System.out.println(out.data3);
//            System.out.println(data4);
//            System.out.println(data5);
//            System.out.println(data6);
//            System.out.println("InnerClass：：test()");
//        }
//    }


}
